/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Bean;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

/**
 *
 * @author owner
 */
public class Admin {
    public ResultSet tampilPengirimanCab_Barang() throws SQLException {
        Connection con = Database.Koneksi.open();
        Statement st = con.createStatement();
        ResultSet rs1 = st.executeQuery("select * from BARANG_T ");
        return rs1;
    }
    
     public ResultSet tampilPengirimanCab_Konsumen() throws SQLException {
        Connection con = Database.Koneksi.open();
        Statement st = con.createStatement();
        ResultSet rs2 = st.executeQuery("select * from KONSUMEN_T ");
        return rs2;
    }
}
